package com.generator.purchaseManage.productManage.service;

import com.generator.purchaseManage.productManage.pojo.CProduct;
import com.generator.util.PageModel;

import java.util.List;

/**
 * @version 1.0
 * @auther wumei
 * @date 2022/10/06
 * 星期六 17:52
 */
public interface IProductService {

    /**
     * 根据查询条件查询商品信息
     * @param product
     * @return
     */
    public PageModel<CProduct> queryProductByCondition(CProduct product,PageModel<CProduct> pageModel);

    /**
     * 根据查询条件查询商品信息
     * @param product
     * @return
     */
    public CProduct queryProductByName(CProduct product);

    /**
     * 添加商品
     * @param product
     * @return
     */
    public boolean addProduct(CProduct product);

    /**
     * 修改商品信息
     * @param product
     * @return
     */
    public boolean updateProduct(CProduct product);

    /**
     * 删除商品
     * @param product
     * @return
     */
    public boolean deleteProduct(CProduct product);

}
